<?php
class Spage extends AppModel{
    var $name='Spage';
    
    var $belongsTo=array(
                    'Screen'=>array('className'=>'Screen',
                        'condition'=>'',
                        'order'=>'',
                        'dependent'=>true,
                        'foreignKey'=>'screens_id'
                    )
    ); 
    
    var $hasMany = array(
        'Spage' => array(
            'className'     => 'Spage',
            'foreignKey'    => 'screens_id',
            'order'    => 'Spage.id DESC',
            //'limit'        => '5',
            'dependent'=> true
        )
    );  
}
?>
